﻿@model MvcApplication5.Core.IPageInfo
@{
    Layout = null;
}

<div class="pagination">
  <ul>
    @for (int pc = 1; pc <= Model.TotalPages; pc++)
    {
        if (pc == Model.CurrentPage)
        {
             <li class="active">
                <a href="#">@Model.CurrentPage</a>
             </li>
        }
        else
        {
              <li><a href="#" onclick="javascript:loadGridOneWithParams('@pc'); return false;">@pc</a></li>
        }
    }
  </ul>
</div>

